<div class="content">
	<div class="title">
	<h2>近期活动</h2>
	</div>
	<div class="detailblock">
	<h1 align="center"><?php echo $this->escape($this->act['title']);?></h1>
	<?php 
		$countgood = $this->act['countgood'];
		$countsoso = $this->act['countsoso'];
		$countbad = $this->act['countbad'];
		$countall = $countgood + $countsoso + $countbad;
	?>
	<h4>好评:<?php echo '('.$countgood.'人)';?><?php if($countall==0)echo 0; else echo round((floatval($countgood))/$countall * 100);?>%
	<div class="progressbar">
		<div class="red" style="width:<?php if($countall==0)echo 0; else echo round((floatval($countgood))/$countall * 100);?>%">
		</div>
	</div>
	一般:<?php echo '('.$countsoso.'人)';?><?php if($countall==0)echo 0; else echo round((floatval($countsoso))/$countall * 100);?>%
	<div class="progressbar">
		<div class="green" style="width:<?php if($countall==0)echo 0; else echo round((floatval($countsoso))/$countall * 100);?>%">
		</div>
	</div>
	差评:<?php echo '('.$countbad.'人)';?><?php if($countall==0)echo 0; else echo round((floatval($countbad))/$countall * 100);?>%
	<div class="progressbar">
		<div class="yellow" style="width:<?php if($countall==0)echo 0; else echo round((floatval($countbad))/$countall * 100);?>%">
		</div>
	</div>
	</h4>
	
	<p>
	<?php echo $this->escape($this->act['content']);?>
	</p>
	<form action="<?php echo $this->baseUrl().'/recentact/detail?actid='.$this->act['id'];?>" method="post">
	<h4>我来投一票：
	<input type="radio" id="gratitude" name="gratitude" value="countgood" />很好
	<input type="radio" id="gratitude" name="gratitude" value="countsoso" checked="checked"/>一般
	<input type="radio" id="gratitude" name="gratitude" value="countbad" />较差
	<button type="submit">投票</button>
	</h4>
	</form>
	
	</div>
	
	
</div>